# Contributor: guddaff <guddaff@protonmail.com>
# Maintainer: guddaff <guddaff@protonmail.com>
pkgname=ouch
pkgver=0.3.1
pkgrel=0
pkgdesc="Painless compression and decompression"
url="https://github.com/ouch-org/ouch"
arch="all !s390x !riscv64"
license="MIT"
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/ouch-org/ouch/archive/refs/tags/$pkgver.tar.gz"

build() {
	cargo build --release --locked
}

check() {
	cargo test --release --locked
}

package() {
	cargo install --locked --path . --root="$pkgdir/usr"
	rm "$pkgdir"/usr/.crates*
}

sha512sums="
06977fbdf203e9d2be1898ff66258b32a24baf76509ba690ae4b0aa123aadf5ecec2174e9fdfd9c168ff117faaa468c1ff88b607e97eef2ae904a791fd9eb606  ouch-0.3.1.tar.gz
"
